package com.zjj.spring.read.xml.aop.proxy.staticproxy;

import com.zjj.spring.read.xml.aop.proxy.HelloService;

public class HelloServiceProxy  implements HelloService {

	private HelloService helloService;
	
	public HelloServiceProxy() {
		this.helloService = new HelloServiceImpl();
	}
	
	@Override
	public void sayHello(String name) {
		System.out.println(" --- HelloServiceProxy before ---");
		helloService.sayHello(name);
		System.out.println(" --- HelloServiceProxy after ---");
	}

	@Override
	public String sayWelcome(String name, String content) {
		System.out.println(" --- HelloServiceProxy before ---");
		String str = helloService.sayWelcome(name , content);
		System.out.println(" --- HelloServiceProxy after ---");
		return str;
	}
	

}
